package com.itqf.bean;

/**
 * projectName: SpringMVCTest02
 *
 * @author: 元
 * time: 2021/7/6 0006 19:48
 * description:用户实体类
 */
public class User {
    private Integer id;
    private String account;
    private String password;
    private String sex;
    private Integer age;
    private String phone;
    private String type;

    public User() {}

    public User(Integer id, String account, String password, String sex,
                Integer age, String phone, String type) {
        this.id = id;
        this.account = account;
        this.password = password;
        this.sex = sex;
        this.age = age;
        this.phone = phone;
        this.type = type;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", phone='" + phone + '\'' +
                ", type='" + type + '\'' +
                '}';
    }
}
